package ar.com.ford.it.fullEconomics.view.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMessages;
import ar.com.ford.it.fullEconomics.view.form.CostStructureFileLoadForm;
import ar.com.ford.it.webengine.struts.AbstractBaseAction;
import ar.com.ford.it.webengine.struts.FordActionMapping;
import ar.com.ford.it.webengine.websession.WebSession;

public class CostStructureFileLoadAction extends AbstractBaseAction {
	@Override
	public ActionForward initPage(FordActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, WebSession websession, ActionMessages msgs, ActionMessages warns, ActionMessages errormsgs) {
		CostStructureFileLoadForm formulario = (CostStructureFileLoadForm) form;
		
		formulario.resetForm();
		
		return mapping.findForward("success");
	}
	
	public ActionForward doLoad(FordActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, WebSession websession, ActionMessages msgs, ActionMessages warns, ActionMessages errormsgs) {
		CostStructureFileLoadForm formulario = (CostStructureFileLoadForm) form;
		
		
		return mapping.findForward("success");
	}
}
